<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="${ctx}/MAdmin/vendors/bootstrap/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="${ctx}/MAdmin/css/themes/style1/orange-blue.css" class="default-style">
<script src="${ctx}/MAdmin/js/jquery-1.10.2.min.js"></script>
<!-- 提示框 -->
<link  href="${ctx}/MAdmin/vendors/jquery-toastr/toastr.min.css" type="text/css" rel="stylesheet" >
<script src="${ctx}/MAdmin/vendors/jquery-toastr/toastr.min.js"></script>
<!-- 表格 -->
<link  href="${ctx}/MAdmin/vendors/DataTables/media/css/jquery.dataTables.css" type="text/css" rel="stylesheet" >
<link  href="${ctx}/MAdmin/vendors/DataTables/media/css/dataTables.bootstrap.css" type="text/css" rel="stylesheet"  >
<script src="${ctx}/MAdmin/vendors/DataTables/media/js/jquery.dataTables.js"></script>
<script src="${ctx}/MAdmin/vendors/DataTables/media/js/dataTables.bootstrap.js"></script>
<!-- 隐藏DIV -->
<script src="${ctx}/MAdmin/vendors/bootstrap/js/bootstrap.min.js"></script>
<!-- 树 -->
<link type="text/css" rel="stylesheet" href="${ctx}/MAdmin/vendors/jstree/dist/themes/default/style.min.css">
<link type="text/css" rel="stylesheet" href="${ctx}/MAdmin/vendors/jquery-treetable/stylesheets/jquery.treetable.css">
<link type="text/css" rel="stylesheet" href="${ctx}/MAdmin/vendors/jquery-treetable/stylesheets/jquery.treetable.theme.custom.css">
<script src="${ctx}/MAdmin/vendors/jstree/dist/jstree.min.js"></script>
<script src="${ctx}/MAdmin/vendors/jquery-treetable/javascripts/src/jquery.treetable.js"></script>
<!-- page js -->
<script src="${ctx}/js/custom-jsutil.js"></script><!-- 自定义通用工具 -->
<script src="${ctx}/js/sys_role.js"></script>
<script type="text/javascript">$.ctx = "${ctx}";</script>
</head>
<body>
<div class="page-content">

	<div class="col-lg-6">
	<div class="panel panel-blue">
		<div class="panel-heading">权限列表</div>
        <div class="panel-body">
		<table id="tableinfo" class="table table-hover table-striped table-bordered table-advanced tablesorter display">
			<thead>
				<tr>
				<th style="width:3%;"></th>
		        <th>中文名称</th>
		        <th>英文名称</th>
		        <th>状态</th>
		        <th>操作</th>
			</tr>
			</thead>
		</table>
		</div>
	</div>
	</div>
	
	<div class="col-lg-6">
	<div class="panel panel-blue">
        <div class="panel-heading">权限 对应 页面功能</div>
		<div class="panel-body">
	    	<div id="roleTree" class="tree-demo"></div>
	    </div>
	    <div class="modal-footer">
			<button type="button" class="btn btn-primary" onclick="setSysRole();">保存</button>
        </div>
	</div>
	</div>

</div>

<!-- 添加权限div -->
<div id="saveSysRolePage" tabindex="-1" role="dialog" aria-labelledby="modal-responsive-label" aria-hidden="true" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" data-dismiss="modal" aria-hidden="true" class="close">&times;</button>
                <h4 id="modal-responsive-label" class="modal-title">新增权限</h4>
            </div>
            <div class="modal-body">
                <form id="fm" action="${ctx}/sysrole/saveSysRole.do" method="post" class="form-horizontal">
	                <div class="form-body pal">
	                    <div class="form-group">
	                        <label for="inputEmail" class="col-md-3 control-label">权限名称：</label>
	                        <div class="col-md-9">
	                            <div class="input-group">
	                                <input type="text" id="name" name="name" placeholder="例子：普通用户" class="form-control">
	                            </div>
	                        </div>
	                    </div>
	                    <div class="form-group">
	                        <label for="inputAddress" class="col-md-3 control-label">权限英文：</label>
	                        <div class="col-md-9">
	                            <div class="input-group">
	                                <input type="text" id="role" name="role" placeholder="例子：ROLE_USER" class="form-control">
	                            </div>
	                        </div>
	                    </div>
	                </div>
	            </form>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                <button type="button" class="btn btn-primary" onclick="saveSysRole();">保存</button>
            </div>
        </div>
    </div>
</div>

</body>
</html>